//
//  PKGroupModel.m
//  PianKe
//
//  Created by mingtao on 15/10/12.
//  Copyright (c) 2015年 mingtao. All rights reserved.
//

#import "PKGroupModel.h"
#import "PKGrouplistModel.h"

@implementation PKGroupModel
-(void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"list"]) {
        self.list = [NSMutableArray arrayWithCapacity:0];
        
        for (NSDictionary *keylist in value) {

            PKGrouplistModel *gourplist=[[PKGrouplistModel alloc]init];
            
            [gourplist setValuesForKeysWithDictionary:keylist];
            
            [self.list addObject:gourplist];
        }
        
    }else
    {
        [super setValue:value forKey:key];
    
    }

}

@end
